﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using Com.Charence.PassManager.BusinessEntities;

namespace Com.Charence.PassManager.Common
{
    public class AppContext
    {
        public static AppContext Current
        {
            get
            {
                if (HttpContext.Current.Session["__AppContext"] == null)
                    HttpContext.Current.Session["__AppContext"] = new AppContext();
                return HttpContext.Current.Session["__AppContext"] as AppContext;
            }
        }

        public int LoginUserID { get; set; }

        public User LoginUserInfo { get; set; }
    }
}
